﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Foundation.ObjectHydrator.Interfaces;

namespace Foundation.ObjectHydrator.Generators
{
    public class AmericanStateGenerator:IGenerator
    {
        Random random;
        IList<string> states = new List<string>();

        public void LoadStates()
        {
            states = new List<string>() { "CA", "AL", "TN", "AR", "WA" };
        }

        public AmericanStateGenerator()
        {
            random = new Random();
            LoadStates();
        }

        public object Generate()
        {
            return states[random.Next(0, states.Count)];
        }

        
    }
}
